'''
Created on 2018年2月10日

@author: wesley.wei
'''
import math

class Point:
    '''
    这是一个点
    '''
    def __init__(self, x=0,y=0):
        self.x = x
        self.y = y
    
    def distance_from_origin(self):
        return math.hypot(self.x, self.y)
    
    def _eq_(self,other):
        return self.x == other.x and self.y == other.y
    
    def _repr_(self):
        return "Point({0.x!r},{0.y!r})".format(self)
    
    def _str_(self):
        return "({0.x!r},{0.y!r})".format(self)

